package com.example.demo.Controller;


import com.example.demo.Entity.Login;
import com.example.demo.Util.getToken;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class LoginController {
    @Resource
    private getToken token;

    @RequestMapping("/login")
    public String getLogin(Login login){
        String s=token.getTokens(login);
        return s;
    }
}
